/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PnlEditStaProduct.java
 *
 * Created on 3 ก.พ. 2553, 2:05:04
 */

package Inventory;

/**
 *
 * @author hj
 */
public class PnlEditStaProduct extends javax.swing.JPanel {

    /** Creates new form PnlEditStaProduct */
    public PnlEditStaProduct() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnlHeadEditStaPro = new javax.swing.JPanel();
        lblHeadListStaPro = new javax.swing.JLabel();
        btnStaProEditSave = new javax.swing.JButton();
        btnStaProEditCancel = new javax.swing.JButton();
        btnStaProEditDel = new javax.swing.JButton();
        btnStaProPrint = new javax.swing.JButton();
        pnlEditStaPro = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        txaSPComment = new javax.swing.JTextArea();
        lblSProComment = new javax.swing.JLabel();
        txtSPCode = new javax.swing.JTextField();
        lblSProName = new javax.swing.JLabel();
        lblSProCode = new javax.swing.JLabel();
        rbtStaProPos = new javax.swing.JRadioButton();
        rbtStaProMend = new javax.swing.JRadioButton();
        rbtStaProChang = new javax.swing.JRadioButton();
        rbtStaProInventory = new javax.swing.JRadioButton();

        setMaximumSize(new java.awt.Dimension(700, 500));
        setMinimumSize(new java.awt.Dimension(700, 500));
        setLayout(new java.awt.BorderLayout());

        pnlHeadEditStaPro.setBackground(new java.awt.Color(204, 255, 204));
        pnlHeadEditStaPro.setMaximumSize(new java.awt.Dimension(700, 80));
        pnlHeadEditStaPro.setMinimumSize(new java.awt.Dimension(700, 80));
        pnlHeadEditStaPro.setPreferredSize(new java.awt.Dimension(700, 80));

        lblHeadListStaPro.setFont(new java.awt.Font("Tahoma", 1, 16));
        lblHeadListStaPro.setText("สถานะสินค้า");

        btnStaProEditSave.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/save_30x30.gif"))); // NOI18N

        btnStaProEditCancel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/cancel_30x30.gif"))); // NOI18N

        btnStaProEditDel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/del_30x30.gif"))); // NOI18N

        btnStaProPrint.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/print_30x30.gif"))); // NOI18N
        btnStaProPrint.setMaximumSize(new java.awt.Dimension(40, 40));
        btnStaProPrint.setMinimumSize(new java.awt.Dimension(40, 40));
        btnStaProPrint.setPreferredSize(new java.awt.Dimension(40, 40));

        javax.swing.GroupLayout pnlHeadEditStaProLayout = new javax.swing.GroupLayout(pnlHeadEditStaPro);
        pnlHeadEditStaPro.setLayout(pnlHeadEditStaProLayout);
        pnlHeadEditStaProLayout.setHorizontalGroup(
            pnlHeadEditStaProLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlHeadEditStaProLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(pnlHeadEditStaProLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblHeadListStaPro)
                    .addGroup(pnlHeadEditStaProLayout.createSequentialGroup()
                        .addGap(0, 0, 0)
                        .addComponent(btnStaProEditSave, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnStaProEditCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnStaProEditDel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnStaProPrint, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(490, Short.MAX_VALUE))
        );
        pnlHeadEditStaProLayout.setVerticalGroup(
            pnlHeadEditStaProLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlHeadEditStaProLayout.createSequentialGroup()
                .addGap(10, 10, 10)
                .addComponent(lblHeadListStaPro, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(pnlHeadEditStaProLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(btnStaProPrint, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnStaProEditDel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnStaProEditSave, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnStaProEditCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        add(pnlHeadEditStaPro, java.awt.BorderLayout.PAGE_START);

        txaSPComment.setColumns(12);
        txaSPComment.setRows(2);
        jScrollPane1.setViewportView(txaSPComment);

        lblSProComment.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblSProComment.setText("หมายเหตุ :");

        txtSPCode.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtSPCode.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtSPCodeActionPerformed(evt);
            }
        });

        lblSProName.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblSProName.setText("สถานะสินค้า :");

        lblSProCode.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblSProCode.setText("รหัสสถานะสินค้า :");

        rbtStaProPos.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        rbtStaProPos.setText("หน้าร้าน");
        rbtStaProPos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rbtStaProPosActionPerformed(evt);
            }
        });

        rbtStaProMend.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        rbtStaProMend.setText("ซ่อม");
        rbtStaProMend.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rbtStaProMendActionPerformed(evt);
            }
        });

        rbtStaProChang.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        rbtStaProChang.setText("เครม");
        rbtStaProChang.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rbtStaProChangActionPerformed(evt);
            }
        });

        rbtStaProInventory.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        rbtStaProInventory.setText("คลัง");
        rbtStaProInventory.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rbtStaProInventoryActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout pnlEditStaProLayout = new javax.swing.GroupLayout(pnlEditStaPro);
        pnlEditStaPro.setLayout(pnlEditStaProLayout);
        pnlEditStaProLayout.setHorizontalGroup(
            pnlEditStaProLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlEditStaProLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(pnlEditStaProLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblSProCode)
                    .addComponent(lblSProName)
                    .addComponent(lblSProComment))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(pnlEditStaProLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlEditStaProLayout.createSequentialGroup()
                        .addGroup(pnlEditStaProLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 140, Short.MAX_VALUE)
                            .addComponent(txtSPCode, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(443, 443, 443))
                    .addGroup(pnlEditStaProLayout.createSequentialGroup()
                        .addComponent(rbtStaProInventory)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(rbtStaProPos)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(rbtStaProMend)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(rbtStaProChang)
                        .addContainerGap())))
        );
        pnlEditStaProLayout.setVerticalGroup(
            pnlEditStaProLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlEditStaProLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(pnlEditStaProLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblSProCode)
                    .addComponent(txtSPCode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlEditStaProLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblSProName)
                    .addComponent(rbtStaProInventory)
                    .addComponent(rbtStaProPos)
                    .addComponent(rbtStaProMend)
                    .addComponent(rbtStaProChang))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlEditStaProLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblSProComment))
                .addContainerGap(310, Short.MAX_VALUE))
        );

        add(pnlEditStaPro, java.awt.BorderLayout.CENTER);
    }// </editor-fold>//GEN-END:initComponents

    private void txtSPCodeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtSPCodeActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_txtSPCodeActionPerformed

    private void rbtStaProPosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rbtStaProPosActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_rbtStaProPosActionPerformed

    private void rbtStaProMendActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rbtStaProMendActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_rbtStaProMendActionPerformed

    private void rbtStaProChangActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rbtStaProChangActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_rbtStaProChangActionPerformed

    private void rbtStaProInventoryActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rbtStaProInventoryActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_rbtStaProInventoryActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnStaProEditCancel;
    private javax.swing.JButton btnStaProEditDel;
    private javax.swing.JButton btnStaProEditSave;
    private javax.swing.JButton btnStaProPrint;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JLabel lblHeadListStaPro;
    private javax.swing.JLabel lblSProCode;
    private javax.swing.JLabel lblSProComment;
    private javax.swing.JLabel lblSProName;
    private javax.swing.JPanel pnlEditStaPro;
    private javax.swing.JPanel pnlHeadEditStaPro;
    private javax.swing.JRadioButton rbtStaBuyWait;
    private javax.swing.JRadioButton rbtStaProChang;
    private javax.swing.JRadioButton rbtStaProInventory;
    private javax.swing.JRadioButton rbtStaProMend;
    private javax.swing.JRadioButton rbtStaProPos;
    private javax.swing.JTextArea txaSPComment;
    private javax.swing.JTextField txtSPCode;
    // End of variables declaration//GEN-END:variables

}
